home *** CD-ROM | disk | FTP | other *** search
/ Sound Blastoff / Sound Blastoff.iso / Sound Utilities / Carp 2.0 folder / CARP 2.0 / CARP 2.0.rsrc / bin.rsrc_CODE_1.txt < prev    next >
Text File  |  1996-01-02  |  13KB  |  248 lines

  1. # near model CODE resource
  2. # jump table entries: 0-9 (10 of them)
  3. 00000000  0000 0072                ori.b      D0, 0x72 /* 'r' */
  4. export_0:
  5. 00000004  4278 0A4A                clr.w      [0x00000A4A /* FPState */]
  6. 00000008  9DCE                     sub.l      A6, A6
  7. 0000000A  4EBA 0024                jsr        [PC + 0x24 /* 00000030 */]
  8. 0000000E  4267                     clr.w      -[A7]
  9. 00000010  4879 0000 FFFF           push.l     0xFFFF
  10. 00000016  486F 0004                pea.l      [A7 + 0x4]
  11. 0000001A  4857                     pea.l      [A7]
  12. 0000001C  4878 0001                push.l     0x1
  13. 00000020  223A FFDE                move.l     D1, [PC - 0x22 /* 00000000, value 0x72 'r' */]
  14. 00000024  4EB5 1000                jsr        [A5 + D1.w]
  15. 00000028  206D 006C                movea.l    A0, [A5 + 0x6C]
  16. 0000002C  4E90                     jsr        [A0]
  17. 0000002E  A9F4                     syscall    ExitToShell
  18. fn00000030:
  19. 00000030  598F                     subq.l     A7, 4
  20. 00000032  2F3C 5A45 524F           move.l     -[A7], 0x5A45524F /* 'ZERO' */
  21. 00000038  4267                     clr.w      -[A7]
  22. 0000003A  A9A0                     syscall    GetResource
  23. 0000003C  2457                     movea.l    A2, [A7]
  24. 0000003E  598F                     subq.l     A7, 4
  25. 00000040  2F3C 4441 5441           move.l     -[A7], 0x44415441 /* 'DATA' */
  26. 00000046  4267                     clr.w      -[A7]
  27. 00000048  A9A0                     syscall    GetResource
  28. 0000004A  2057                     movea.l    A0, [A7]
  29. 0000004C  2050                     movea.l    A0, [A0]
  30. 0000004E  2278 0908                movea.l    A1, [0x00000908 /* CurStackBase */]
  31. 00000052  2452                     movea.l    A2, [A2]
  32. 00000054  600E                     bra        +0x10 /* 00000064 */
  33. label00000056:
  34. 00000056  32D8                     move.w     [A1]+, [A0]+
  35. 00000058  660A                     bne        +0xC /* 00000064 */
  36. 0000005A  321A                     move.w     D1, [A2]+
  37. 0000005C  6002                     bra        +0x4 /* 00000060 */
  38. label0000005E:
  39. 0000005E  4219                     clr.b      [A1]+
  40. label00000060:
  41. 00000060  51C9 FFFC                dbf        D1, -0x6 /* 0000005E */
  42. label00000064:
  43. 00000064  BBC9                     cmpa.l     A5, A1
  44. 00000066  66EE                     bne        -0x10 /* 00000056 */
  45. 00000068  A9A3                     syscall    ReleaseResource
  46. 0000006A  A9A3                     syscall    ReleaseResource
  47. 0000006C  598F                     subq.l     A7, 4
  48. 0000006E  2F3C 4452 454C           move.l     -[A7], 0x4452454C /* 'DREL' */
  49. 00000074  4267                     clr.w      -[A7]
  50. 00000076  A9A0                     syscall    GetResource
  51. 00000078  2057                     movea.l    A0, [A7]
  52. 0000007A  A025                     syscall    GetHandleSize
  53. 0000007C  2050                     movea.l    A0, [A0]
  54. 0000007E  E240                     asr        D0.w, 1
  55. 00000080  240D                     move.l     D2, A5
  56. 00000082  6006                     bra        +0x8 /* 0000008A */
  57. label00000084:
  58. 00000084  3218                     move.w     D1, [A0]+
  59. 00000086  D5B5 1000                add.l      [A5 + D1.w], D2
  60. label0000008A:
  61. 0000008A  51C8 FFF8                dbf        D0, -0xA /* 00000084 */
  62. 0000008E  A9A3                     syscall    ReleaseResource
  63. 00000090  4E75                     rts
  64. export_1:
  65. 00000092  205F                     movea.l    A0, [A7]+
  66. 00000094  3218                     move.w     D1, [A0]+
  67. label00000096:
  68. 00000096  3418                     move.w     D2, [A0]+
  69. 00000098  B058                     cmp.w      D0, [A0]+
  70. 0000009A  57C9 FFFA                dbeq       D1, -0x8 /* 00000096 */
  71. 0000009E  4A42                     tst.w      D2
  72. label000000A0:
  73. 000000A0  67FE                     beq        -0x0 /* 000000A0 */
  74. 000000A2  4EF0 20FC                jmp        [A0 + D2.w - 0x4]
  75. export_2:
  76. 000000A6  205F                     movea.l    A0, [A7]+
  77. 000000A8  3218                     move.w     D1, [A0]+
  78. label000000AA:
  79. 000000AA  3418                     move.w     D2, [A0]+
  80. 000000AC  B098                     cmp.l      D0, [A0]+
  81. 000000AE  57C9 FFFA                dbeq       D1, -0x8 /* 000000AA */
  82. 000000B2  4A42                     tst.w      D2
  83. label000000B4:
  84. 000000B4  67FE                     beq        -0x0 /* 000000B4 */
  85. 000000B6  4EF0 20FA                jmp        [A0 + D2.w - 0x6]
  86. export_3:
  87. 000000BA  205F                     movea.l    A0, [A7]+
  88. 000000BC  3218                     move.w     D1, [A0]+
  89. 000000BE  3418                     move.w     D2, [A0]+
  90. 000000C0  B042                     cmp.w      D0, D2
  91. 000000C2  6E0A                     bgt        +0xC /* 000000CE */
  92. 000000C4  9041                     sub.w      D0, D1
  93. 000000C6  6D06                     blt        +0x8 /* 000000CE */
  94. 000000C8  D040                     add.w      D0, D0
  95. 000000CA  41F0 0002                lea.l      A0, [A0 + D0.w + 0x2]
  96. label000000CE:
  97. 000000CE  3010                     move.w     D0, [A0]
  98. label000000D0:
  99. 000000D0  67FE                     beq        -0x0 /* 000000D0 */
  100. 000000D2  4EF0 0000                jmp        [A0 + D0.w]
  101. export_4:
  102. 000000D6  202F 0004                move.l     D0, [A7 + 0x4]
  103. 000000DA  2F41 0004                move.l     [A7 + 0x4], D1
  104. 000000DE  222F 0008                move.l     D1, [A7 + 0x8]
  105. 000000E2  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  106. 000000E6  48E7 3C00                movem.l    -[A7], D2,D3,D4,D5
  107. 000000EA  2400                     move.l     D2, D0
  108. 000000EC  2601                     move.l     D3, D1
  109. 000000EE  4842                     swap.w     D2
  110. 000000F0  C4C3                     mulu.w     D2, D3
  111. 000000F2  2800                     move.l     D4, D0
  112. 000000F4  2A01                     move.l     D5, D1
  113. 000000F6  4845                     swap.w     D5
  114. 000000F8  C8C5                     mulu.w     D4, D5
  115. 000000FA  D444                     add.w      D2, D4
  116. 000000FC  4842                     swap.w     D2
  117. 000000FE  4242                     clr.w      D2
  118. 00000100  C0C1                     mulu.w     D0, D1
  119. 00000102  D082                     add.l      D0, D2
  120. 00000104  4CDF 003C                movem.l    D2,D3,D4,D5, [A7]+
  121. 00000108  221F                     move.l     D1, [A7]+
  122. 0000010A  4E75                     rts
  123. export_5:
  124. 0000010C  202F 0004                move.l     D0, [A7 + 0x4]
  125. 00000110  2F41 0004                move.l     [A7 + 0x4], D1
  126. 00000114  222F 0008                move.l     D1, [A7 + 0x8]
  127. 00000118  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  128. 0000011C  48E7 3100                movem.l    -[A7], D2,D3,D7
  129. 00000120  4EBA 009C                jsr        [PC + 0x9C /* 000001BE */]
  130. 00000124  4CDF 008C                movem.l    D2,D3,D7, [A7]+
  131. 00000128  221F                     move.l     D1, [A7]+
  132. 0000012A  4E75                     rts
  133. export_6:
  134. 0000012C  202F 0004                move.l     D0, [A7 + 0x4]
  135. 00000130  2F41 0004                move.l     [A7 + 0x4], D1
  136. 00000134  222F 0008                move.l     D1, [A7 + 0x8]
  137. 00000138  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  138. 0000013C  48E7 3100                movem.l    -[A7], D2,D3,D7
  139. 00000140  4EBA 007C                jsr        [PC + 0x7C /* 000001BE */]
  140. 00000144  2001                     move.l     D0, D1
  141. 00000146  4CDF 008C                movem.l    D2,D3,D7, [A7]+
  142. 0000014A  221F                     move.l     D1, [A7]+
  143. 0000014C  4E75                     rts
  144. export_7:
  145. 0000014E  202F 0004                move.l     D0, [A7 + 0x4]
  146. 00000152  2F41 0004                move.l     [A7 + 0x4], D1
  147. 00000156  222F 0008                move.l     D1, [A7 + 0x8]
  148. 0000015A  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  149. 0000015E  48E7 3100                movem.l    -[A7], D2,D3,D7
  150. 00000162  4EBA 002C                jsr        [PC + 0x2C /* 00000190 */]
  151. 00000166  4CDF 008C                movem.l    D2,D3,D7, [A7]+
  152. 0000016A  221F                     move.l     D1, [A7]+
  153. 0000016C  4E75                     rts
  154. export_8:
  155. 0000016E  202F 0004                move.l     D0, [A7 + 0x4]
  156. 00000172  2F41 0004                move.l     [A7 + 0x4], D1
  157. 00000176  222F 0008                move.l     D1, [A7 + 0x8]
  158. 0000017A  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  159. 0000017E  48E7 3100                movem.l    -[A7], D2,D3,D7
  160. 00000182  4EBA 000C                jsr        [PC + 0xC /* 00000190 */]
  161. 00000186  2001                     move.l     D0, D1
  162. 00000188  4CDF 008C                movem.l    D2,D3,D7, [A7]+
  163. 0000018C  221F                     move.l     D1, [A7]+
  164. 0000018E  4E75                     rts
  165. fn00000190:
  166. 00000190  4A80                     tst.l      D0
  167. 00000192  6A1C                     bpl        +0x1E /* 000001B0 */
  168. 00000194  4A81                     tst.l      D1
  169. 00000196  6A0C                     bpl        +0xE /* 000001A4 */
  170. 00000198  4480                     neg.l      D0
  171. 0000019A  4481                     neg.l      D1
  172. 0000019C  4EBA 0020                jsr        [PC + 0x20 /* 000001BE */]
  173. 000001A0  4481                     neg.l      D1
  174. 000001A2  4E75                     rts
  175. label000001A4:
  176. 000001A4  4480                     neg.l      D0
  177. 000001A6  4EBA 0016                jsr        [PC + 0x16 /* 000001BE */]
  178. 000001AA  4480                     neg.l      D0
  179. 000001AC  4481                     neg.l      D1
  180. 000001AE  4E75                     rts
  181. label000001B0:
  182. 000001B0  4A81                     tst.l      D1
  183. 000001B2  6A0A                     bpl        +0xC /* 000001BE */
  184. 000001B4  4481                     neg.l      D1
  185. 000001B6  4EBA 0006                jsr        [PC + 0x6 /* 000001BE */]
  186. 000001BA  4480                     neg.l      D0
  187. 000001BC  4E75                     rts
  188. fn000001BE:
  189. 000001BE  2E3C 0000 FFFF           move.l     D7, 0xFFFF
  190. 000001C4  B280                     cmp.l      D1, D0
  191. 000001C6  6306                     bls        +0x8 /* 000001CE */
  192. 000001C8  2200                     move.l     D1, D0
  193. 000001CA  7000                     moveq.l    D0, 0x00
  194. 000001CC  4E75                     rts
  195. label000001CE:
  196. 000001CE  B087                     cmp.l      D0, D7
  197. 000001D0  620C                     bhi        +0xE /* 000001DE */
  198. 000001D2  80C1                     divu.w     D0, D1
  199. 000001D4  4840                     swap.w     D0
  200. 000001D6  3200                     move.w     D1, D0
  201. 000001D8  4240                     clr.w      D0
  202. 000001DA  4840                     swap.w     D0
  203. 000001DC  4E75                     rts
  204. label000001DE:
  205. 000001DE  B287                     cmp.l      D1, D7
  206. 000001E0  621A                     bhi        +0x1C /* 000001FC */
  207. 000001E2  2E00                     move.l     D7, D0
  208. 000001E4  4240                     clr.w      D0
  209. 000001E6  4840                     swap.w     D0
  210. 000001E8  80C1                     divu.w     D0, D1
  211. 000001EA  4840                     swap.w     D0
  212. 000001EC  4847                     swap.w     D7
  213. 000001EE  3E00                     move.w     D7, D0
  214. 000001F0  4847                     swap.w     D7
  215. 000001F2  8EC1                     divu.w     D7, D1
  216. 000001F4  3007                     move.w     D0, D7
  217. 000001F6  4847                     swap.w     D7
  218. 000001F8  3207                     move.w     D1, D7
  219. 000001FA  4E75                     rts
  220. label000001FC:
  221. 000001FC  2400                     move.l     D2, D0
  222. 000001FE  2601                     move.l     D3, D1
  223. label00000200:
  224. 00000200  E288                     lsr        D0, 1
  225. 00000202  E289                     lsr        D1, 1
  226. 00000204  B287                     cmp.l      D1, D7
  227. 00000206  62F8                     bhi        -0x6 /* 00000200 */
  228. 00000208  80C1                     divu.w     D0, D1
  229. 0000020A  C087                     and.l      D0, D7
  230. label0000020C:
  231. 0000020C  3203                     move.w     D1, D3
  232. 0000020E  C2C0                     mulu.w     D1, D0
  233. 00000210  2E03                     move.l     D7, D3
  234. 00000212  4847                     swap.w     D7
  235. 00000214  CEC0                     mulu.w     D7, D0
  236. 00000216  4847                     swap.w     D7
  237. 00000218  D287                     add.l      D1, D7
  238. 0000021A  6508                     bcs        +0xA /* 00000224 */
  239. 0000021C  9282                     sub.l      D1, D2
  240. 0000021E  6204                     bhi        +0x6 /* 00000224 */
  241. 00000220  4481                     neg.l      D1
  242. 00000222  4E75                     rts
  243. label00000224:
  244. 00000224  5340                     subq.w     D0, 1
  245. 00000226  60E4                     bra        -0x1A /* 0000020C */
  246. export_9:
  247. 00000228  4E75                     rts
  248.